# -*- coding: utf-8 -*-
import os
from os.path import dirname

PROJECT_ROOT = dirname(dirname(os.path.abspath(__file__)))
# api web settings
API_PROJECT_NAME = 'QRCODE_WEB_API'
# -- logging config --

API_LOG_PATH = os.path.join(API_SITE_PATH, 'log')
API_LOG_FILE = os.path.join(API_LOG_PATH, '%s.log' % API_PROJECT_NAME)
API_LOG_LEVEL = "debug"

# sub-urls
API_JS_URL = u"/js"
API_CSS_URL = u"/css"
API_IMG_URL = u"/img"


# secret config
API_HTTP_ONLY = True
API_XSRF_COOKIES = False
API_AUTOESCAPE = None

# -- session timeout --
API_SESSION_TIMEOUT = 3600 * 4

# redis config

#weapp













